﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="SBACN.WebSite.Admin.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title>上海市银行同业公会-后台管理登录</title>
	<link href="images/login.css" rel="stylesheet" type="text/css" />
	<script src="../js/jquery.js" type="text/javascript"></script>
	<script src="../js/md5.js" type="text/javascript"></script>
	<style type="text/css">
		body{
				margin:0px;
				padding:0px;
		}
		#box{
		 width:400px;
		 height:200px;
		 /*margin:0px auto;*/
		 position:absolute;
		 top:50%;
		 left:50%;
		 margin:-100px 0px 0px -120px;
		 line-height:20px;
		 text-align:center;
		}
	</style>
	<script type="text/javascript">
		function Reset() {
			document.getElementById("form1").reset();
			return false;
		}

		function DoLogin() {
			if ($.trim(document.getElementById("txt_UserName").value).length == 0) {
				document.getElementById("lbl_Msg").innerText = "用户名不能为空!";
				return false;
			}
			else
			{
				document.getElementById("txt_UserName").value = $.trim(document.getElementById("txt_UserName").value);
			}

			if ($.trim(document.getElementById("txt_Password").value).length == 0) {
				document.getElementById("lbl_Msg").innerText = "密码不能为空!";
				return false;
			}
			else {
				document.getElementById("hid_Password").value = hex_md5($.trim(document.getElementById("txt_Password").value));
				$("#txt_Password").attr("disabled", "true");
			}
			return true;
		}
	</script>
</head>
<body>
    <form id="form1" runat="server">
	<div id="container">
		<div id="login">
			<table border="0" cellpadding="0" cellspacing="5">
				<tr>
					<td width="48" height="17" align="right">
						<span class="loginfont">登录名：</span>
					</td>
					<td align="left">
						<asp:TextBox ID="txt_UserName" runat="server" MaxLength="50" Width="160px" TabIndex="1"></asp:TextBox>
					</td>
					<td rowspan="2" align="left" valign="top">
						<asp:Button ID="btn_Login" runat="server" OnClientClick="return DoLogin();" Text="Login"
							OnClick="btn_Login_Click" class="button" TabIndex="3" />
					</td>
				</tr>
				<tr>
					<td align="right">
						<span class="loginfont">密码：</span>
					</td>
					<td align="left">
						<asp:TextBox ID="txt_Password" TextMode="Password" runat="server" MaxLength="50"
							Width="160px" TabIndex="2"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td align="left" colspan="3" style="height: 20px" valign="middle">
						<asp:Label ID="lbl_Msg" runat="server" ForeColor="Red" Text="&nbsp;"></asp:Label>
					</td>
				</tr>
				<%--<tr>
					<td align="right">
						<span class="loginfont">验证码：</span>
					</td>
					<td align="left">
						<input name="textfield2232" type="text" class="inputline" size="10" />
					</td>
				</tr>--%>
			</table>
		<asp:HiddenField ID="hid_Password" Value="" runat="server" />
		</div>
	</div>
    </form>
</body>
</html>
